/**************************************************************

Copyright Astrium Services GEO-Information / Spot Image
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

 ***************************************************************/
package com.spotimage.catalog.client.ajax;

import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JsonUtils;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.Response;
import com.smartgwt.client.util.SC;
import com.spotimage.catalog.client.event.EventBus;
import com.spotimage.catalog.client.event.SearchResultEvent;
import com.spotimage.catalog.client.event.SelectionSearchResultEvent;
import com.spotimage.catalog.client.json.JSONSearchResult;
import com.spotimage.catalog.client.util.LoadingDialog;

/**
 * AJAX request sender.
 */
public class Requester {
	
	private static final String COULDN_T_RETRIEVE_JSON = "Couldn't retrieve JSON";

	/**
	 * Send a request to The SPOT Catalog simple API.
	 * @param queryString parameters of the API
	 */
	public static void send(String queryString, final GwtEvent<?> callbackEvent, final boolean showInfos) {
		// mock response code : 
		// uncomment the code below to use an API mock response and comment all the rest of this method
//		if (!queryString.contains("Scenes/")) {
//			String responseText = "{\"Code\":\"PartialContent\",\"Message\":\"Too Many results (50 most recent scenes provided).\",\"Scenes\":[{\"AcquisitionDate\":\"2010-04-30T17:30:12Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782891004301730121M\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988195&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.246400833129883,\"Longitude\":-101.6268},\"LowerRight\":{\"Latitude\":30.134099960327148,\"Longitude\":-100.97070000000001},\"MaxShift\":\"Shift1\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988195\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":30.454099655151367,\"Longitude\":-101.2236},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":30.7721004486084,\"Longitude\":-101.47080000000001},\"UpperRight\":{\"Latitude\":30.659099578857422,\"Longitude\":-100.8113}},{\"AcquisitionDate\":\"2010-04-30T17:30:12Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782891004301730121R\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=45782891004301730121I&SF=0&CT=MI&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.246299743652344,\"Longitude\":-101.6268},\"LowerRight\":{\"Latitude\":30.134099960327148,\"Longitude\":-100.97080000000001},\"MaxShift\":\"Shift1\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15703325\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":30.454099655151367,\"Longitude\":-101.22370000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":30.7721004486084,\"Longitude\":-101.47080000000001},\"UpperRight\":{\"Latitude\":30.659099578857422,\"Longitude\":-100.8114}},{\"AcquisitionDate\":\"2010-04-30T17:30:12Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782891004301730121I\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988655&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.246299743652344,\"Longitude\":-101.6268},\"LowerRight\":{\"Latitude\":30.134099960327148,\"Longitude\":-100.97080000000001},\"MaxShift\":\"Shift1\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988655\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":20,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":30.454099655151367,\"Longitude\":-101.22370000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":30.7721004486084,\"Longitude\":-101.47080000000001},\"UpperRight\":{\"Latitude\":30.659099578857422,\"Longitude\":-100.8114}},{\"AcquisitionDate\":\"2010-04-30T17:30:03Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782881004301730031M\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988194&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.741399765014648,\"Longitude\":-101.48},\"LowerRight\":{\"Latitude\":30.628400802612305,\"Longitude\":-100.8207},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988194\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":30.948600769042969,\"Longitude\":-101.0745},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":31.267000198364258,\"Longitude\":-101.32260000000001},\"UpperRight\":{\"Latitude\":31.153200149536133,\"Longitude\":-100.6598}},{\"AcquisitionDate\":\"2010-04-30T17:30:03Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782881004301730031R\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=45782881004301730031I&SF=0&CT=MI&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.741300582885742,\"Longitude\":-101.48},\"LowerRight\":{\"Latitude\":30.628400802612305,\"Longitude\":-100.8208},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15703324\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":30.948600769042969,\"Longitude\":-101.0746},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":31.266899108886719,\"Longitude\":-101.32260000000001},\"UpperRight\":{\"Latitude\":31.153200149536133,\"Longitude\":-100.65990000000001}},{\"AcquisitionDate\":\"2010-04-30T17:30:03Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782881004301730031I\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988654&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.741300582885742,\"Longitude\":-101.48},\"LowerRight\":{\"Latitude\":30.628400802612305,\"Longitude\":-100.8208},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988654\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":20,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":30.948600769042969,\"Longitude\":-101.0746},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":31.266899108886719,\"Longitude\":-101.32260000000001},\"UpperRight\":{\"Latitude\":31.153200149536133,\"Longitude\":-100.65990000000001}},{\"AcquisitionDate\":\"2010-04-30T17:29:55Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":1,\"Id\":\"45782871004301729551R\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=45782871004301729551I&SF=0&CT=MI&FT=JPG\",\"LowerLeft\":{\"Latitude\":31.236099243164062,\"Longitude\":-101.3319},\"LowerRight\":{\"Latitude\":31.122299194335938,\"Longitude\":-100.66940000000001},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15703323\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":31.442899703979492,\"Longitude\":-100.92410000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":31.761499404907227,\"Longitude\":-101.1731},\"UpperRight\":{\"Latitude\":31.646900177001953,\"Longitude\":-100.507}},{\"AcquisitionDate\":\"2010-04-30T17:29:55Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782871004301729551M\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988193&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":31.236099243164062,\"Longitude\":-101.3319},\"LowerRight\":{\"Latitude\":31.122299194335938,\"Longitude\":-100.6693},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988193\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":31.442899703979492,\"Longitude\":-100.92410000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":31.761499404907227,\"Longitude\":-101.1731},\"UpperRight\":{\"Latitude\":31.646900177001953,\"Longitude\":-100.507}},{\"AcquisitionDate\":\"2010-04-30T17:29:55Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782871004301729551I\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988653&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":31.236099243164062,\"Longitude\":-101.3319},\"LowerRight\":{\"Latitude\":31.122299194335938,\"Longitude\":-100.66940000000001},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988653\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":20,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":31.442899703979492,\"Longitude\":-100.92410000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":31.761499404907227,\"Longitude\":-101.1731},\"UpperRight\":{\"Latitude\":31.646900177001953,\"Longitude\":-100.507}},{\"AcquisitionDate\":\"2010-04-30T17:29:46Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782861004301729461M\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988192&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":31.730499267578125,\"Longitude\":-101.1825},\"LowerRight\":{\"Latitude\":31.615999221801758,\"Longitude\":-100.51660000000001},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988192\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":31.936899185180664,\"Longitude\":-100.7723},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.25579833984375,\"Longitude\":-101.0223},\"UpperRight\":{\"Latitude\":32.140399932861328,\"Longitude\":-100.3527}},{\"AcquisitionDate\":\"2010-04-30T17:29:46Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782861004301729461I\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988652&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":31.730499267578125,\"Longitude\":-101.1825},\"LowerRight\":{\"Latitude\":31.615999221801758,\"Longitude\":-100.51660000000001},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988652\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":20,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":31.936899185180664,\"Longitude\":-100.7723},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.255699157714844,\"Longitude\":-101.0223},\"UpperRight\":{\"Latitude\":32.140399932861328,\"Longitude\":-100.3527}},{\"AcquisitionDate\":\"2010-04-30T17:29:46Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782861004301729461R\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=45782861004301729461I&SF=0&CT=MI&FT=JPG\",\"LowerLeft\":{\"Latitude\":31.730499267578125,\"Longitude\":-101.1825},\"LowerRight\":{\"Latitude\":31.615999221801758,\"Longitude\":-100.51660000000001},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15703322\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":31.936899185180664,\"Longitude\":-100.7723},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.255699157714844,\"Longitude\":-101.0223},\"UpperRight\":{\"Latitude\":32.140399932861328,\"Longitude\":-100.3527}},{\"AcquisitionDate\":\"2010-04-30T17:29:38Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782851004301729381I\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988651&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":32.224601745605469,\"Longitude\":-101.0318},\"LowerRight\":{\"Latitude\":32.109401702880859,\"Longitude\":-100.36250000000001},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988651\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":20,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":32.430500030517578,\"Longitude\":-100.6192},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.749698638916016,\"Longitude\":-100.87010000000001},\"UpperRight\":{\"Latitude\":32.633598327636719,\"Longitude\":-100.197}},{\"AcquisitionDate\":\"2010-04-30T17:29:38Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782851004301729381M\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988191&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":32.224700927734375,\"Longitude\":-101.0318},\"LowerRight\":{\"Latitude\":32.109401702880859,\"Longitude\":-100.36240000000001},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988191\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":32.430500030517578,\"Longitude\":-100.6191},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.749698638916016,\"Longitude\":-100.87010000000001},\"UpperRight\":{\"Latitude\":32.633598327636719,\"Longitude\":-100.197}},{\"AcquisitionDate\":\"2010-04-30T17:29:38Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":1,\"Id\":\"45782851004301729381R\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=45782851004301729381I&SF=0&CT=MI&FT=JPG\",\"LowerLeft\":{\"Latitude\":32.224601745605469,\"Longitude\":-101.0318},\"LowerRight\":{\"Latitude\":32.109401702880859,\"Longitude\":-100.36250000000001},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15703321\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":32.430500030517578,\"Longitude\":-100.6192},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.749698638916016,\"Longitude\":-100.87010000000001},\"UpperRight\":{\"Latitude\":32.633598327636719,\"Longitude\":-100.197}},{\"AcquisitionDate\":\"2010-04-30T17:29:29Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782841004301729291M\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988190&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":32.718498229980469,\"Longitude\":-100.8798},\"LowerRight\":{\"Latitude\":32.602401733398438,\"Longitude\":-100.2069},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988190\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":32.923900604248047,\"Longitude\":-100.4645},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":33.243301391601562,\"Longitude\":-100.71650000000001},\"UpperRight\":{\"Latitude\":33.126399993896484,\"Longitude\":-100.0398}},{\"AcquisitionDate\":\"2010-04-30T17:29:29Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782841004301729291I\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988650&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":32.718498229980469,\"Longitude\":-100.8797},\"LowerRight\":{\"Latitude\":32.602401733398438,\"Longitude\":-100.2069},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988650\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":20,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":32.923900604248047,\"Longitude\":-100.4646},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":33.243301391601562,\"Longitude\":-100.71650000000001},\"UpperRight\":{\"Latitude\":33.126399993896484,\"Longitude\":-100.0398}},{\"AcquisitionDate\":\"2010-04-30T17:29:29Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":4,\"Id\":\"45782841004301729291R\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=45782841004301729291I&SF=0&CT=MI&FT=JPG\",\"LowerLeft\":{\"Latitude\":32.718498229980469,\"Longitude\":-100.8797},\"LowerRight\":{\"Latitude\":32.602401733398438,\"Longitude\":-100.2069},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15703320\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":32.923900604248047,\"Longitude\":-100.4646},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":12,\"UpperLeft\":{\"Latitude\":33.243301391601562,\"Longitude\":-100.71650000000001},\"UpperRight\":{\"Latitude\":33.126399993896484,\"Longitude\":-100.0398}},{\"AcquisitionDate\":\"2010-04-30T17:29:21Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782831004301729211I\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988649&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":33.212001800537109,\"Longitude\":-100.72630000000001},\"LowerRight\":{\"Latitude\":33.095100402832031,\"Longitude\":-100.04990000000001},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988649\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":20,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":33.416900634765625,\"Longitude\":-100.30850000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":33.736598968505859,\"Longitude\":-100.56150000000001},\"UpperRight\":{\"Latitude\":33.618900299072266,\"Longitude\":-99.8811}},{\"AcquisitionDate\":\"2010-04-30T17:29:21Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782831004301729211M\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988189&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":33.212001800537109,\"Longitude\":-100.72630000000001},\"LowerRight\":{\"Latitude\":33.095100402832031,\"Longitude\":-100.0498},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988189\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":33.416900634765625,\"Longitude\":-100.30850000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":33.736698150634766,\"Longitude\":-100.56150000000001},\"UpperRight\":{\"Latitude\":33.618900299072266,\"Longitude\":-99.881}},{\"AcquisitionDate\":\"2010-04-30T17:29:21Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":2,\"Id\":\"45782831004301729211R\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=45782831004301729211I&SF=0&CT=MI&FT=JPG\",\"LowerLeft\":{\"Latitude\":33.212001800537109,\"Longitude\":-100.72630000000001},\"LowerRight\":{\"Latitude\":33.095100402832031,\"Longitude\":-100.04990000000001},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15703319\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":33.416900634765625,\"Longitude\":-100.30850000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":12,\"UpperLeft\":{\"Latitude\":33.736598968505859,\"Longitude\":-100.56150000000001},\"UpperRight\":{\"Latitude\":33.618900299072266,\"Longitude\":-99.8811}},{\"AcquisitionDate\":\"2010-04-30T17:29:12Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":2,\"Id\":\"45782821004301729121R\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=45782821004301729121I&SF=0&CT=MI&FT=JPG\",\"LowerLeft\":{\"Latitude\":33.7052001953125,\"Longitude\":-100.57140000000001},\"LowerRight\":{\"Latitude\":33.587501525878906,\"Longitude\":-99.8913},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15703318\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":33.909599304199219,\"Longitude\":-100.15100000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":34.229598999023438,\"Longitude\":-100.405},\"UpperRight\":{\"Latitude\":34.111000061035156,\"Longitude\":-99.720800000000011}},{\"AcquisitionDate\":\"2010-04-30T17:29:12Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782821004301729121I\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988648&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":33.7052001953125,\"Longitude\":-100.57140000000001},\"LowerRight\":{\"Latitude\":33.587501525878906,\"Longitude\":-99.8913},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988648\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":20,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":33.909599304199219,\"Longitude\":-100.15100000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":34.229598999023438,\"Longitude\":-100.405},\"UpperRight\":{\"Latitude\":34.111000061035156,\"Longitude\":-99.720800000000011}},{\"AcquisitionDate\":\"2010-04-30T17:29:12Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782821004301729121M\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988188&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":33.7052001953125,\"Longitude\":-100.5715},\"LowerRight\":{\"Latitude\":33.587501525878906,\"Longitude\":-99.8912},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988188\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":33.909599304199219,\"Longitude\":-100.15090000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":34.229598999023438,\"Longitude\":-100.405},\"UpperRight\":{\"Latitude\":34.111000061035156,\"Longitude\":-99.720800000000011}},{\"AcquisitionDate\":\"2010-04-30T17:29:04Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782811004301729041I\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988647&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":34.198001861572266,\"Longitude\":-100.41510000000001},\"LowerRight\":{\"Latitude\":34.079498291015625,\"Longitude\":-99.7312},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988647\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":20,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":34.401901245117188,\"Longitude\":-99.9919},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":34.7223014831543,\"Longitude\":-100.247},\"UpperRight\":{\"Latitude\":34.602798461914062,\"Longitude\":-99.558900000000008}},{\"AcquisitionDate\":\"2010-04-30T17:29:04Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"45782811004301729041M\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30988187&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":34.198001861572266,\"Longitude\":-100.41510000000001},\"LowerRight\":{\"Latitude\":34.079498291015625,\"Longitude\":-99.7311},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30988187\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":34.401901245117188,\"Longitude\":-99.9919},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":34.7223014831543,\"Longitude\":-100.247},\"UpperRight\":{\"Latitude\":34.602798461914062,\"Longitude\":-99.558900000000008}},{\"AcquisitionDate\":\"2010-04-30T17:29:04Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":2,\"Id\":\"45782811004301729041R\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=45782811004301729041I&SF=0&CT=MI&FT=JPG\",\"LowerLeft\":{\"Latitude\":34.198001861572266,\"Longitude\":-100.41510000000001},\"LowerRight\":{\"Latitude\":34.079498291015625,\"Longitude\":-99.7312},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15703317\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT4\",\"SceneCenter\":{\"Latitude\":34.401901245117188,\"Longitude\":-99.9919},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":34.7223014831543,\"Longitude\":-100.247},\"UpperRight\":{\"Latitude\":34.602798461914062,\"Longitude\":-99.558900000000008}},{\"AcquisitionDate\":\"2010-04-28T17:14:57Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832921004281714571J\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976053&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":28.7677001953125,\"Longitude\":-99.7008},\"LowerRight\":{\"Latitude\":28.641700744628906,\"Longitude\":-99.0544},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976053\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":28.968799591064453,\"Longitude\":-99.30810000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":29.296600341796875,\"Longitude\":-99.571},\"UpperRight\":{\"Latitude\":29.170499801635742,\"Longitude\":-98.9213}},{\"AcquisitionDate\":\"2010-04-28T17:14:57Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"55832921004281714571U\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=55832921004281714571J&SF=0&CT=HMX&FT=JPG\",\"LowerLeft\":{\"Latitude\":28.7677001953125,\"Longitude\":-99.7009},\"LowerRight\":{\"Latitude\":28.641700744628906,\"Longitude\":-99.0545},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15706556\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":28.968799591064453,\"Longitude\":-99.3082},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":29.296600341796875,\"Longitude\":-99.5711},\"UpperRight\":{\"Latitude\":29.170499801635742,\"Longitude\":-98.9214}},{\"AcquisitionDate\":\"2010-04-28T17:14:55Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832921004281714551A\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976003&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":28.766300201416016,\"Longitude\":-99.7008},\"LowerRight\":{\"Latitude\":28.643400192260742,\"Longitude\":-99.0536},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976003\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":5,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":28.9689998626709,\"Longitude\":-99.307600000000008},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":29.295200347900391,\"Longitude\":-99.571},\"UpperRight\":{\"Latitude\":29.172199249267578,\"Longitude\":-98.9205}},{\"AcquisitionDate\":\"2010-04-28T17:14:49Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"55832911004281714491U\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=55832911004281714491J&SF=0&CT=HMX&FT=JPG\",\"LowerLeft\":{\"Latitude\":29.263500213623047,\"Longitude\":-99.5793},\"LowerRight\":{\"Latitude\":29.137500762939453,\"Longitude\":-98.929700000000011},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15706555\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":29.464500427246094,\"Longitude\":-99.1846},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":29.792299270629883,\"Longitude\":-99.4488},\"UpperRight\":{\"Latitude\":29.666099548339844,\"Longitude\":-98.7958}},{\"AcquisitionDate\":\"2010-04-28T17:14:49Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832911004281714491J\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976052&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":29.263500213623047,\"Longitude\":-99.5792},\"LowerRight\":{\"Latitude\":29.137500762939453,\"Longitude\":-98.929600000000008},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976052\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":29.464500427246094,\"Longitude\":-99.184400000000011},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":29.792299270629883,\"Longitude\":-99.4487},\"UpperRight\":{\"Latitude\":29.666099548339844,\"Longitude\":-98.795700000000011}},{\"AcquisitionDate\":\"2010-04-28T17:14:46Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832911004281714461A\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976002&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":29.261699676513672,\"Longitude\":-99.5792},\"LowerRight\":{\"Latitude\":29.1387996673584,\"Longitude\":-98.9289},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976002\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":5,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":29.464300155639648,\"Longitude\":-99.1841},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":29.790500640869141,\"Longitude\":-99.4487},\"UpperRight\":{\"Latitude\":29.667499542236328,\"Longitude\":-98.795}},{\"AcquisitionDate\":\"2010-04-28T17:14:40Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832901004281714401J\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976051&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":29.758499145507812,\"Longitude\":-99.457000000000008},\"LowerRight\":{\"Latitude\":29.632400512695312,\"Longitude\":-98.8043},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976051\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":29.959499359130859,\"Longitude\":-99.0603},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":30.287200927734375,\"Longitude\":-99.3259},\"UpperRight\":{\"Latitude\":30.160999298095703,\"Longitude\":-98.6696}},{\"AcquisitionDate\":\"2010-04-28T17:14:40Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"55832901004281714401U\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=55832901004281714401J&SF=0&CT=HMX&FT=JPG\",\"LowerLeft\":{\"Latitude\":29.758499145507812,\"Longitude\":-99.457100000000011},\"LowerRight\":{\"Latitude\":29.632400512695312,\"Longitude\":-98.8044},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15706554\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":29.959499359130859,\"Longitude\":-99.0604},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":30.287300109863281,\"Longitude\":-99.326000000000008},\"UpperRight\":{\"Latitude\":30.160999298095703,\"Longitude\":-98.6697}},{\"AcquisitionDate\":\"2010-04-28T17:14:38Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832901004281714381A\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976001&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":29.75670051574707,\"Longitude\":-99.457100000000011},\"LowerRight\":{\"Latitude\":29.633699417114258,\"Longitude\":-98.8036},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976001\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":5,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":29.959299087524414,\"Longitude\":-99.06},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":30.285499572753906,\"Longitude\":-99.3259},\"UpperRight\":{\"Latitude\":30.162300109863281,\"Longitude\":-98.668900000000008}},{\"AcquisitionDate\":\"2010-04-28T17:14:32Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"55832891004281714321U\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=55832891004281714321J&SF=0&CT=HMX&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.253499984741211,\"Longitude\":-99.3344},\"LowerRight\":{\"Latitude\":30.127300262451172,\"Longitude\":-98.678400000000011},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15706553\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":30.454299926757812,\"Longitude\":-98.935600000000008},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":30.782100677490234,\"Longitude\":-99.2025},\"UpperRight\":{\"Latitude\":30.655799865722656,\"Longitude\":-98.5429}},{\"AcquisitionDate\":\"2010-04-28T17:14:32Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832891004281714321J\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976050&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.253499984741211,\"Longitude\":-99.3343},\"LowerRight\":{\"Latitude\":30.127300262451172,\"Longitude\":-98.678300000000007},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976050\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":30.454299926757812,\"Longitude\":-98.9355},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":30.782100677490234,\"Longitude\":-99.202400000000011},\"UpperRight\":{\"Latitude\":30.65570068359375,\"Longitude\":-98.5428}},{\"AcquisitionDate\":\"2010-04-28T17:14:29Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832891004281714291A\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976000&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.251699447631836,\"Longitude\":-99.3343},\"LowerRight\":{\"Latitude\":30.128499984741211,\"Longitude\":-98.677500000000009},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976000\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":5,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":30.454099655151367,\"Longitude\":-98.935200000000009},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":30.780300140380859,\"Longitude\":-99.202400000000011},\"UpperRight\":{\"Latitude\":30.656999588012695,\"Longitude\":-98.542}},{\"AcquisitionDate\":\"2010-04-28T17:14:23Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832881004281714231J\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976049&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.748300552368164,\"Longitude\":-99.2108},\"LowerRight\":{\"Latitude\":30.621999740600586,\"Longitude\":-98.5514},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976049\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":30.949100494384766,\"Longitude\":-98.81},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":31.276899337768555,\"Longitude\":-99.07820000000001},\"UpperRight\":{\"Latitude\":31.150400161743164,\"Longitude\":-98.41510000000001}},{\"AcquisitionDate\":\"2010-04-28T17:14:23Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"55832881004281714231U\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=55832881004281714231J&SF=0&CT=HMX&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.74839973449707,\"Longitude\":-99.210900000000009},\"LowerRight\":{\"Latitude\":30.621999740600586,\"Longitude\":-98.551600000000008},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15706552\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":30.949100494384766,\"Longitude\":-98.8101},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":31.276899337768555,\"Longitude\":-99.0783},\"UpperRight\":{\"Latitude\":31.150400161743164,\"Longitude\":-98.4152}},{\"AcquisitionDate\":\"2010-04-28T17:14:21Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832881004281714211A\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30975999&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":30.746500015258789,\"Longitude\":-99.210900000000009},\"LowerRight\":{\"Latitude\":30.623199462890625,\"Longitude\":-98.5507},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30975999\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":5,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":30.948799133300781,\"Longitude\":-98.8096},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":31.275100708007812,\"Longitude\":-99.07820000000001},\"UpperRight\":{\"Latitude\":31.151599884033203,\"Longitude\":-98.4144}},{\"AcquisitionDate\":\"2010-04-28T17:14:06Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832861004281714062J\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976046&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":31.736499786376953,\"Longitude\":-98.90740000000001},\"LowerRight\":{\"Latitude\":31.609899520874023,\"Longitude\":-98.243000000000009},\"MaxShift\":\"Shift2\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976046\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":31.937000274658203,\"Longitude\":-98.5031},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.264801025390625,\"Longitude\":-98.7728},\"UpperRight\":{\"Latitude\":32.138099670410156,\"Longitude\":-98.1046}},{\"AcquisitionDate\":\"2010-04-28T17:14:06Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"55832861004281714062U\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=55832861004281714062J&SF=0&CT=HMX&FT=JPG\",\"LowerLeft\":{\"Latitude\":31.736499786376953,\"Longitude\":-98.9076},\"LowerRight\":{\"Latitude\":31.609899520874023,\"Longitude\":-98.2433},\"MaxShift\":\"Shift2\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15706541\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":31.937099456787109,\"Longitude\":-98.50330000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.264801025390625,\"Longitude\":-98.7731},\"UpperRight\":{\"Latitude\":32.138099670410156,\"Longitude\":-98.1049}},{\"AcquisitionDate\":\"2010-04-28T17:14:04Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832861004281714042A\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30975996&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":31.734800338745117,\"Longitude\":-98.9076},\"LowerRight\":{\"Latitude\":31.611299514770508,\"Longitude\":-98.2424},\"MaxShift\":\"Shift4\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30975996\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":5,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":31.937000274658203,\"Longitude\":-98.502900000000011},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.263198852539062,\"Longitude\":-98.7731},\"UpperRight\":{\"Latitude\":32.139499664306641,\"Longitude\":-98.104}},{\"AcquisitionDate\":\"2010-04-28T17:13:58Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832851004281713582J\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976045&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":32.230300903320312,\"Longitude\":-98.781600000000012},\"LowerRight\":{\"Latitude\":32.10369873046875,\"Longitude\":-98.113700000000009},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976045\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":32.430801391601562,\"Longitude\":-98.3751},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.758598327636719,\"Longitude\":-98.646300000000011},\"UpperRight\":{\"Latitude\":32.631698608398438,\"Longitude\":-97.9744}},{\"AcquisitionDate\":\"2010-04-28T17:13:58Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"55832851004281713582U\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=55832851004281713582J&SF=0&CT=HMX&FT=JPG\",\"LowerLeft\":{\"Latitude\":32.230400085449219,\"Longitude\":-98.781900000000007},\"LowerRight\":{\"Latitude\":32.10369873046875,\"Longitude\":-98.1139},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15706540\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":32.430801391601562,\"Longitude\":-98.37530000000001},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.758598327636719,\"Longitude\":-98.6465},\"UpperRight\":{\"Latitude\":32.631698608398438,\"Longitude\":-97.974600000000009}},{\"AcquisitionDate\":\"2010-04-28T17:13:56Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55832851004281713562A\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30975995&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":32.22869873046875,\"Longitude\":-98.781900000000007},\"LowerRight\":{\"Latitude\":32.104999542236328,\"Longitude\":-98.1131},\"MaxShift\":\"Shift9\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30975995\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":5,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":32.430698394775391,\"Longitude\":-98.375},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":32.756900787353516,\"Longitude\":-98.6465},\"UpperRight\":{\"Latitude\":32.633098602294922,\"Longitude\":-97.973800000000011}},{\"AcquisitionDate\":\"2010-04-28T17:13:39Z\",\"ArchivingStation\":\"CS\",\"CloudCoverPercentage\":0,\"Id\":\"55842831004281713391U\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=C&ID=55842831004281713391J&SF=0&CT=HMX&FT=JPG\",\"LowerLeft\":{\"Latitude\":33.215999603271484,\"Longitude\":-97.9355},\"LowerRight\":{\"Latitude\":33.090599060058594,\"Longitude\":-97.283},\"MaxShift\":\"Shift2\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/C\\/15706531\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":33.416999816894531,\"Longitude\":-97.535000000000011},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":33.743801116943359,\"Longitude\":-97.7947},\"UpperRight\":{\"Latitude\":33.618198394775391,\"Longitude\":-97.1382}},{\"AcquisitionDate\":\"2010-04-28T17:13:39Z\",\"ArchivingStation\":\"WX\",\"CloudCoverPercentage\":0,\"Id\":\"55842831004281713391J\",\"ImageUrl\":\"http:\\/\\/daliog.spotimage.fr\\/imagesWsEsaEoli\\/img\\/getImage.aspx?ST=S&SN=30976042&SF=0&FT=JPG\",\"LowerLeft\":{\"Latitude\":33.215900421142578,\"Longitude\":-97.9354},\"LowerRight\":{\"Latitude\":33.090599060058594,\"Longitude\":-97.2829},\"MaxShift\":\"Shift2\",\"MetadataUrl\":\"http:\\/\\/daliis.spotimage.fr\\/dali-rest-api\\/Dali.svc\\/Scenes\\/S\\/30976042\\/Shift0\",\"MinShift\":\"Shift0\",\"Resolution\":10,\"Satellite\":\"SPOT5\",\"SceneCenter\":{\"Latitude\":33.416999816894531,\"Longitude\":-97.534900000000007},\"Shift\":\"Shift0\",\"SnowCoverPercentage\":0,\"UpperLeft\":{\"Latitude\":33.743801116943359,\"Longitude\":-97.7946},\"UpperRight\":{\"Latitude\":33.618198394775391,\"Longitude\":-97.138100000000009}}]}";
//			JSONSearchResult searchResult = JsonUtils.unsafeEval(responseText);
//			SearchResultEvent event = new SearchResultEvent();
//			event.setSearchResult(searchResult);
//			EventBus.getInstance().fireEvent(event);
//		}
//		return;
		String url = GWT.getModuleBaseURL() + "proxy?" + queryString;
		RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url);
		if (showInfos) LoadingDialog.display(true);
		try {
			builder.sendRequest(null, new RequestCallback() {
				public void onError(Request request, Throwable exception) {
					if (showInfos) {
						LoadingDialog.display(false);
						SC.warn(COULDN_T_RETRIEVE_JSON + " (" + exception.getMessage() + ")");
					}
				}
				public void onResponseReceived(Request request, Response response) {
					String statusText = response.getStatusText();
					if (200 == response.getStatusCode()) {
						String responseText = response.getText();
						if (responseText.equals("") && (showInfos)) {
								SC.warn(COULDN_T_RETRIEVE_JSON +
										((statusText.equals("OK"))?"":(" (" + statusText + ")")));
						} else {
							try {
								JSONSearchResult searchResult = JsonUtils.unsafeEval(responseText);
								String resultCode = searchResult.getCode();
								if (!resultCode.equals("OK") && (showInfos)) SC.warn(searchResult.getMessage());
								if (resultCode.equals("OK") || resultCode.equals("PartialContent")) {
									if (callbackEvent instanceof SearchResultEvent) {
										((SearchResultEvent) callbackEvent).setSearchResult(searchResult);
									} else if (callbackEvent instanceof SelectionSearchResultEvent) {
										((SelectionSearchResultEvent) callbackEvent).setSearchResult(searchResult);
									}
									EventBus.getInstance().fireEvent(callbackEvent);
								}
							} catch (Exception e) {
								if (showInfos) {
									LoadingDialog.display(false);
									SC.warn(e.getMessage());
								}
							}
						}
					} else {
						if (showInfos) SC.warn(COULDN_T_RETRIEVE_JSON + " (" + statusText + ")");
					}
					if (showInfos) LoadingDialog.display(false);
				}
			});
		} catch (Exception e) {
			if (showInfos) {
				LoadingDialog.display(false);
				SC.warn(COULDN_T_RETRIEVE_JSON + " (" + e.getMessage() + ")");
			}
		}
	}

}
